﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TDT_Project
{
    public partial class GIAO_VIEN : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
                loadControl();
        }

        protected void loadControl()
        {
            if (Request.QueryString["pages"] != null)
            {//chitiettin
                if (Request.QueryString["pages"] == "giaovien")
                {
                    Control view = new Control();
                    view = Page.LoadControl("Controller/uc_Nhan_Xet_Chi_Tiet.ascx");
                    view.ID = "giaovien";
                    PH_Main.Controls.Clear();
                    PH_Main.Controls.Add(view);
                }
                if (Request.QueryString["pages"] == "mkgv")
                {
                    Control view = new Control();
                    view = Page.LoadControl("Controller/uc_changepass.ascx");
                    view.ID = "mkgv";
                    PH_Main.Controls.Clear();
                    PH_Main.Controls.Add(view);
                }
            }
        }
    }
}